Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Visual JSON Schema Editor #905

Merged
merged 43 commits into from
Mar 26, 2024

Conversation

princerajpoot20
Copy link
Member

@princerajpoot20 princerajpoot20 commented Dec 18, 2023

Adding Visual JSON Schema Editor

Resolves: #755

Copy link

changeset-bot bot commented Dec 18, 2023

⚠️ No Changeset found

Latest commit: 343fd5b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

netlify bot commented Dec 18, 2023

Deploy Preview for modest-rosalind-098b67 ready!

Name Link
🔨 Latest commit 343fd5b
🔍 Latest deploy log https://app.netlify.com/sites/modest-rosalind-098b67/deploys/6602920e8f2ab80008935ee0
😎 Deploy Preview https://deploy-preview-905--modest-rosalind-098b67.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Dec 18, 2023

Deploy Preview for asyncapi-studio-design-system ready!

Name Link
🔨 Latest commit 343fd5b
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-studio-design-system/deploys/6602920e52912a0008931f19
😎 Deploy Preview https://deploy-preview-905--asyncapi-studio-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@princerajpoot20 princerajpoot20 changed the title Message schema feat: add message schema Dec 18, 2023
Copy link
Member

@fmvilas fmvilas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dude that was fast 👏

packages/ui/components/CodeEditor.tsx Outdated Show resolved Hide resolved
packages/ui/components/VisualEditor.tsx Outdated Show resolved Hide resolved
packages/ui/components/VisualEditor.tsx Outdated Show resolved Hide resolved
packages/ui/components/VisualEditor.tsx Outdated Show resolved Hide resolved
packages/ui/components/index.tsx Outdated Show resolved Hide resolved
@aeworxet
Copy link
Contributor

@asyncapi/bounty_team

@aeworxet
Copy link
Contributor

@princerajpoot20
Please edit the description of the PR if it's meant to resolve the Bounty Issue you're working on (so it's displayed in the issue's comments and GitHub search, with 'Resolves full_URL_to_GH_issue').

@princerajpoot20
Copy link
Member Author

princerajpoot20 commented Jan 19, 2024

Update

Screenshot 2024-01-26 at 1 26 17 AM
  • The "add property" option is now working for inner objects as well.

What's left:

  • Completing the Example section.
  • UI changes.
  • Few minor fixes

@princerajpoot20
Copy link
Member Author

Currently working on:

I am working on resolving type error that is causing the build to fail, though it runs on my local machine.

@princerajpoot20 princerajpoot20 changed the title feat: add message schema feat: add Visual JSON Schema Editor Mar 14, 2024
@aeworxet
Copy link
Contributor

Is something blocking this PR from merging, though the functionality is not finished, but agreed to be merged 'as is?'
Is Fran's changerequest still relevant (it's dated 2023-12-19?)

Amzani
Amzani previously approved these changes Mar 18, 2024
Copy link
Collaborator

@Amzani Amzani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Amzani
Copy link
Collaborator

Amzani commented Mar 18, 2024

/rtm

@Amzani
Copy link
Collaborator

Amzani commented Mar 18, 2024

@princerajpoot20 could you check @fmvilas suggestion: #905 (comment) if it's not relevant anymore let him know so he can approve as well

We can merge "as is" and make a new iteration to adjust it.

Copy link
Member

@fmvilas fmvilas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused. I'm trying to use the component in the design system (in Storybook) and it doesn't work when I try to remove fields or mark them as required. Is it a thing of how we're integrating it in Storybook or is it a thing of the component? Would love to see it working completely as if it was in the real app.

Also, the design still needs some work. We should make it match the proposed design IMHO.

That said, I'm not a code owner of Studio. If code owners think we should merge this, I'm happy to dismiss my review. That's totally fine, we can address these issues later down the track. Just wanted to highlight the things I'm seeing.

Copy link
Member

@fmvilas fmvilas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just got a DM from @princerajpoot20 explaining the situation:

I’ve discussed this with Samir, and we’ve decided to complete it in two iterations.
We’ve adjusted the complexity of the bounty from advanced to two medium bounties.
I have completed the first iteration, and the second iteration is scheduled for Q2 of 2024 (Link for 2nd iteration).
This iteration will include all remaining tasks, such as deletion, toggling between required/not required, and UI changes. Hence we are merging the current progress now and will complete the remainder in the second iteration.

Approving! 👍

@princerajpoot20 princerajpoot20 requested a review from Amzani March 25, 2024 12:52
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@Amzani
Copy link
Collaborator

Amzani commented Mar 26, 2024

/rtm

@asyncapi-bot asyncapi-bot merged commit 9c3773c into asyncapi:master Mar 26, 2024
23 checks passed
@asyncapi-bot asyncapi-bot added the bounty AsyncAPI Bounty label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Completed
Status: Done
Development

Successfully merging this pull request may close these issues.

Visual Designer: Message schema
5 participants